import rui from '@/uni_modules/rui-tools'
import {
	Request
} from '@/util/request/index'
// #ifdef VUE3
import {
	createSSRApp
} from 'vue'

import * as Pinia from 'pinia';
import userPlugin from "./store/userPlugin.js";

import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	const pinia = Pinia.createPinia()
	pinia.use(userPlugin)

	app.use(pinia);
	Request(app)
	app.config.globalProperties.$rui = rui.start
	return {
		app,
		Pinia
	}
}
// #endif